﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace EvaluacionWebRole
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {

                if (RoleEnvironment.IsAvailable)
                {
                    this.PageTitleLabel.Text =
                    RoleEnvironment.GetConfigurationSettingValue("Titulo");
                }
                

                

                //string vip = Request.ServerVariables["SERVER_NAME"];
                //this.LabelVIP.Text = vip;
                //Trace.Write(vip);

                //string dip = RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.ToString();
                //this.LabelDIP.Text = dip;
  //              Trace.Write(dip);

                //string idInstancia = RoleEnvironment.CurrentRoleInstance.Id;
                //this.LabelIDInstancia.Text = idInstancia;
//                Trace.Write(idInstancia);
                
            }



        }
    }
}